package cn.edu.xmu.oomall.aftersales.model.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @author Jiawei Zheng
 * @date 2021-12-11
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ModifyAfterSaleVo {

    @Min(1)
    Long quantity;

    @NotNull
    String reason;

    @Min(1)
    Long regionId;

    @NotNull
    String detail;

    @NotNull
    String consignee;

    @Pattern(regexp = "1[3|4|5|7|8][0-9]\\d{8}")
    String mobile;
}
